forum

home / developersection / forums / can json.net handle a list<object>?

Can Json.Net handle a List<object>?

Royce Roy 3773 28-Jan-2014

List<User> list = LoadUsers();

JObject json = new JObject();

json["users"] = new JValue(list);

Doesn't seem to be working?

Error:

Could not determine JSON object type for type System.Collections.Generic.List


c# c# 
Updated on 29-Jan-2014
Royce Roy

Other


Message
Can you answer this question?

Answer

1 Answers

Liked By